#coding: utf-8
class Security::UserRole < ActiveRecord::Base
  default_scope where("deleted = 0")

  def erasable
    usr = User.count_user_role_dependencies(id)
    if usr >0
      return "Imposible borrar. Existen dependencias en usuario"  
    end
    return nil
  end
end
